home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
BBS
/
MUBBS
/
MUBBS etc.cpt
/
Module Source
/
Serial Module code
/
Hook Stuff.h
< prev
next >
Wrap
Text File
|
1991-11-04
|
454b
|
22 lines
/* this is stuff so that we can call routines in a CODE Resource
* with a pointer. It's faster than calling the resource through
* the resource manager, that's why we do this !
*/
static
__storeA4()
{
asm {
bsr.s @1
dc.l 0 ; store A4 here
@1 move.l (sp)+,a1
}
}
#define storeA4() __storeA4(); asm { move.l a4,(a1) }
#define getA4() asm { move.l a4,-(sp) } __storeA4(); asm { move.l (a1),a4 }
#define getoldA4() asm { move.l (sp)+,a4 }